<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>安防巡更待办(离线模式)</title>
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="css/header.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/plantasklist.css" />
    <link rel="stylesheet" type="text/css" href="css/plandevicetaskdetail.css" />

    <style>
        .topheader {
            background-size: 100%;
            color: #000;
            height: 2rem;
            position: fixed;
            top: 0px;
            left: 0;
            right: 0;
            background: #289FFF;
            /* 标准的语法 */
        }

        .new_work_btn {
            width: 60px;
            line-height: 30px;
            height: 30px;
            color: #289FFF;
            border: #289FFF 0.5px solid;
            background: #ffffff;
            box-shadow: unset;
            margin-top: 5px;
            margin-bottom: 0;
        }
        .new-isupload{
            border-radius: 20px;
            padding: 5px 10px;
            position:absolute;
            right: 0;
            top: -5px;
        }
        .new_work_btn_blue {
            background: #289FFF;
            color: #ffffff;
        }
     
        .new-bd-btn-org {
            background: #fae7e0;
            color: coral;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div style="padding-bottom: 80px;">
            <div class="aui_listbox aui-margin-t-5">
                <div class="aui_list boxarea mb20" v-for="item in list">
                    <div class="work_title" style="position: relative;padding-right: 80px;">
                        {{item.DevicePlanName?item.DevicePlanName:'空'}}
                        <label v-if="item.IsAllowCard=='true'" class="aui-label new-isupload new-bd-btn-org">已开放补打</label>
                        <!-- <label v-if="item.IsUpload=='0'" class="aui-label new-isupload">未上传</label>
                        <label v-if="item.IsUpload=='1'" class="aui-label new-isupload aui-label-info new_work_btn_blue " >已上传</label> -->
                    </div>
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">任务时间段</div>
                        <div class="work_con_box_right text-right">
                            <label><span v-text="onDealTime(item.StartTime)"></span>~<span
                                    v-text="onDealTime(item.EndTime)"></span><span v-if="item.OutTimeStatusDesc=='超时'"
                                    class="overtime">{{item.OutTimeStatusDesc}}</span></label>
                            <label></label>
                        </div>
                    </div>
                    <div class="work_con_box_name marginheight aui-display-center">
                        <div class="work_con_box_left">巡&nbsp;&nbsp;查&nbsp;&nbsp;人</div>
                        <div class="work_con_box_right  aui-text-right">
                            <label class="aui-ellipsis-1">{{item.TaskChargeManName}}</label>
                        </div>
                    </div>
                    <div class="work_con_box_name marginheight">
                        <div class="work_con_box_left">巡更线路</div>
                        <div class="work_con_box_right text-right">
                            <label>{{item.PatrolLineName}}</label>
                        </div>
                    </div>
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">巡更点</div>
                        <div class="work_con_box_right">
                            <div class="prograssbg">
                                <div class="prograssmsg"
                                    v-bind:style="{'width':((item.completeCount/item.count)*100).toFixed(2)+'%'}"></div>
                            </div>
                            <div class="content mt10"><span>( {{item.completeCount}}/{{item.count}} )</span><span
                                    class="ml10">已完成：{{((item.completeCount/item.count)*100).toFixed(2)}}%</span>
                                <span v-if="item.abnormalCount>0" class="percent" style="color: #ff0000;">有异常</span>
                            </div>
                        </div>
                    </div>
                    <div class="new_work_typebox">
                        <div>
                            <label v-if="item.IsMiss=='true'" class="text-red">漏巡</label>
                            <label v-else v-bind:class="{'text-org':item.TaskStatus=='1','text-blue':item.TaskStatus=='2','text-gray':item.TaskStatus=='3'}">{{item.TaskStatusDesc}}</label>
                        </div>
                        <div>
                            <label v-if="item.TaskStatus!='2'" v-on:click="open_list(item)"
                                class="work_beginbtn new_work_btn">查看</label>
                                <label v-if="item.TaskStatus=='2'" v-on:click="doComplete(item)"
                                class="work_beginbtn new_work_btn">完成</label> 
                            <label v-if="item.TaskStatus=='2'" v-on:click="open_list(item)"
                                class="work_beginbtn new_work_btn new_work_btn_blue">巡查</label>
                        </div>
                    </div>
                </div>
                <div v-if="list.length>0" class="notodayList" style="background:none;font-size: 12px;">
                    没有更多内容
                </div>
            </div>
            <div class="noinfo" id="noorder" v-if="list.length<=0">
                <img src="../image/index/noinfomsg_icon.png" alt="" />
                <h5><br />暂无相关数据</h5>
            </div>
        </div>
        <div class="aui_bottom">
            <div class="aui_bottombtn" v-on:click="doTaskData(2)">上传任务</div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="../script/moment/moment.js"></script>
<script type="text/javascript " src="js/renwulist_offlist.js"></script>

</html>